package com.yao.sys.controller;

import com.yao.common.resp.ApiResponse;
import com.yao.sys.entity.dto.DictTypeDto;
import com.yao.sys.service.DictTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 字典类型表 Controller
 *
 * @author autoCode
 * @version 1.0.0-SNAPSHOT
 * @date 2020-03-23
 */
@Api(tags = "字典类型管理")
@RestController
@RequestMapping(value = "/dictType")
public class DictTypeController {

    private static Logger logger = LoggerFactory.getLogger(DictTypeController.class);

    @Autowired
    private DictTypeService dictTypeService;

    @ApiOperation(value = "新增字典类型", notes = "新增字典类型")
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public ApiResponse<Object> add(@RequestBody DictTypeDto model) {
        return ApiResponse.success();
    }

    @ApiOperation(value = "修改字典类型", notes = "修改字典类型")
    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public ApiResponse<Object> update(@RequestBody DictTypeDto model) {
        return ApiResponse.success();
    }

    @ApiOperation(value = "删除字典类型", notes = "逻辑删除字典类型")
    @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET)
    public ApiResponse<Object> deleteById(@PathVariable("id") Integer id) {
        return ApiResponse.success();
    }

}